package com.dingup.paike.feign.client.student;

import com.dingup.api.model.student.StudentCourseInformation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wancheng on 2018/11/29.
 */
@Component
@FeignClient(value = "p-innermgrweb")
public interface StudentFeignClient {

    @RequestMapping(value = "/feign/student/get_student_course_info.do", method = RequestMethod.POST)
    public StudentCourseInformation getStudentCourseInfo(@RequestParam("studentId") String studentId,
                                                         @RequestParam("classId") Integer classId,
                                                         @RequestParam("userAccount") String userAccount);
}
